.class Lcom/netease/newsreader/activity/DetailPage$10;
.super Ljava/lang/Object;
.source "DetailPage.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/DetailPage;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/DetailPage;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/DetailPage;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 4950
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const/16 v7, 0x8

    const/4 v6, 0x0

    .line 4955
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$81(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/PopupWindow;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/PopupWindow;->dismiss()V

    .line 4956
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v4, v4, Lcom/netease/newsreader/activity/DetailPage;->menuWindow:Landroid/widget/PopupWindow;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v4, v4, Lcom/netease/newsreader/activity/DetailPage;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v4}, Landroid/widget/PopupWindow;->dismiss()V

    .line 4957
    :cond_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$101(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/Button;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/Button;->setVisibility(I)V

    .line 4967
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$38(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_2

    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$38(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "0"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 4968
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    const-string v5, "\u76ee\u524d\u6ca1\u6709\u8ddf\u8d34"

    invoke-static {v4, v5, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/Toast;->show()V

    .line 5013
    :cond_1
    :goto_0
    return-void

    .line 4973
    :cond_2
    const-string v4, "\u8ddf\u8d34"

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$28(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/Button;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 4977
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$61(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 4978
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$60(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 4979
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$62(Lcom/netease/newsreader/activity/DetailPage;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v4

    if-eqz v4, :cond_3

    .line 4980
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$62(Lcom/netease/newsreader/activity/DetailPage;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$63(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/EditText;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v5

    invoke-virtual {v4, v5, v6}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 4983
    :cond_3
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    const/4 v5, 0x1

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/DetailPage;->access$102(Lcom/netease/newsreader/activity/DetailPage;Z)V

    .line 4989
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    .line 4990
    .local v1, j:Lorg/json/JSONObject;
    const-string v3, ""

    .line 4992
    .local v3, replyBoard:Ljava/lang/String;
    :try_start_0
    const-string v4, "p"

    const-string v5, ""

    invoke-virtual {v1, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 4993
    const-string v4, "postid"

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$14(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 4994
    const/4 v2, 0x0

    .line 4995
    .local v2, o:Ljava/lang/Object;
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$13(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/HashMap;

    move-result-object v4

    if-eqz v4, :cond_4

    .line 4996
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$13(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/HashMap;

    move-result-object v4

    const-string v5, "replyBoard"

    invoke-virtual {v4, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 4998
    .end local v2           #o:Ljava/lang/Object;
    :cond_4
    if-nez v2, :cond_5

    const-string v3, ""

    .line 4999
    :goto_1
    const-string v4, "replyBoard"

    invoke-virtual {v1, v4, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 5001
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/DetailPage;->access$103(Lcom/netease/newsreader/activity/DetailPage;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 5006
    :goto_2
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$104(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v4

    if-eqz v4, :cond_1

    .line 5007
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$104(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPage;->access$105(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    const/4 v8, 0x3

    invoke-virtual {v5, v6, v7, v8}, Lcom/netease/newsreader/util/CollectUtil;->getAlreadyCollect(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/DetailPage;->access$106(Lcom/netease/newsreader/activity/DetailPage;I)V

    .line 5008
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$107(Lcom/netease/newsreader/activity/DetailPage;)I

    move-result v4

    const/4 v5, -0x1

    if-eq v4, v5, :cond_6

    .line 5009
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$108(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$109(Lcom/netease/newsreader/activity/DetailPage;)Landroid/content/Context;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPage;->access$110(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/ImageButton;

    move-result-object v6

    const v7, 0x7f020018

    invoke-virtual {v4, v5, v6, v7}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    goto/16 :goto_0

    .line 4998
    :cond_5
    :try_start_1
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v3

    goto :goto_1

    .line 5002
    :catch_0
    move-exception v0

    .line 5003
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_2

    .line 5011
    .end local v0           #e:Ljava/lang/Exception;
    :cond_6
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$108(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$109(Lcom/netease/newsreader/activity/DetailPage;)Landroid/content/Context;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$10;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPage;->access$110(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/ImageButton;

    move-result-object v6

    const v7, 0x7f020015

    invoke-virtual {v4, v5, v6, v7}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    goto/16 :goto_0
.end method
